package cn.com.generaldata.os.common;

/**
 * 用户当前上下文支持类<br />
 * 主要负责设置上下文环境和获得上下文环境
 * 
 */
public class ContextHolder {

	private static final ThreadLocal<Object> contextHolder = new ThreadLocal<Object>();

	public static void setCustomerType(String customerType) {
		contextHolder.set(customerType);
	}

	public static String getCustomerType() {
		return (String) contextHolder.get();
	}

	public static void clearCustomerType() {
		contextHolder.remove();
	}
}
